package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Description:
 * @Author: wang fei long
 * @Date: 2025/9/17 0017 - 23:10
 */
@Data
@TableName("process_step")
public class ProcessStep {

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("process_id")
    private Long processId;
    @TableField("step_order")
    private Integer stepOrder;
    @TableField("material_url")
    private String materialUrl;
    @TableField("auxiliary_equipment")
    private String auxiliaryEquipment;
    @TableField("auxiliary_materials")
    private String auxiliaryMaterials;
    @TableField("step_description")
    private String stepDescription;

    private String remarks;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    @TableField("create_id")

    private Long creatorId;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

    @TableField("modifier_id")
    private Long modifierId;
    @TableField("is_deleted")
    private Integer isDeleted;
}
